// ActionScript file

	/**
	 * Gets a random x movement
	 */
	protected function getXMove():Number 
	{
		var centerX:int = panel != null ? panel.width / 2 : 0;
		var moveX:Number = (Math.random() * 1000) % centerX;
		if (fairy != null && (fairy.x + fairy.width / 2) > centerX)
		{
			moveX = -moveX
		}
		return !isNaN(moveX) ? moveX : 0;
	}
			
	/**
	 * Gets a random y movement
	 */
	protected function getYMove():Number
	{
		var centerY:int = panel != null ? panel.height / 2 : 0;
		var moveY:int = (Math.random() * 1000) % centerY;
		if (fairy != null && (fairy.y + fairy.height / 2) > centerY)
		{
			moveY = -moveY;
		}
		return !isNaN(moveY) ? moveY : 0;
	}
